package DC;

import com.sun.org.apache.bcel.internal.generic.ANEWARRAY;

public class Test {
    public static void main(String[] args) {

        Animal animal = new Animal();
        Dog dog = new Dog();
        Cat cat = new Cat();
        animal.walk();
        animal.cry();
        dog.cry();
        dog.walk();
        cat.cry();
        cat.walk();

        Animal dog2 =new Dog();
        Animal cat2=new Cat();
        dog2.cry();
        dog2.walk();
        cat2.cry();
        cat2.walk();

        People people = new People();
        SouthPeople southPeople = new SouthPeople();
        NorthPeople northPeople = new NorthPeople();
        people.eat();
        southPeople.eat();
        northPeople.eat();

        People s2=new SouthPeople();
        People n2=new NorthPeople();
        s2.eat();
        n2.eat();

    }
}
